<template>
  <div class="test">
    <button @click="demo1">点我去获取数据</button>
  </div>
</template>

<script>
import {reqRollPlayList,reqFloorList} from '@/api'

export default {
  name: "Test",
  methods: {
    async demo1() {
      this.$store.dispatch('getRollPlayList')
      let reuslt1 = await reqRollPlayList();
      let reuslt2 = await reqFloorList();
      console.log(reuslt1, reuslt2);
    },
  },
};
</script>

<style lang="less" scoped>
.test {
  background-color: gray;
  height: 200px;
  button {
    width: 320px;
    height: 50px;
    font-size: 20px;
  }
}
</style>
